using Newtonsoft.Json;
using System;
using System.Collections.Generic;

public class Product
{
    public string Id { get; set; } = "";
    public string Name { get; set; } = "";
    public string Type { get; set; } = "";
    public string Path { get; set; } = "";
    public string? SiteName { get; set; }
    public string? ServiceName { get; set; }
    public string BackupPath { get; set; } = "";
    public string CurrentVersion { get; set; } = "1.0.0";
    public string ProductName { get; set; } = "";
}

public class Config
{
    public List<Product> Products { get; set; } = new();
    public List<RemoteMachine>? RemoteMachines { get; set; }
    public string UpdateServer { get; set; } = "";
    public string LogPath { get; set; } = "";
    public string DownloadBaseUrl { get; set; } = "";
    public string ServiceDownloadUrl { get; set; } = "";
    public string EnterpriseCode { get; set; } = "";
}

public class VersionInfo
{
    public string Version { get; set; } = "";
    public DateTime DeployTime { get; set; }
    public string DeployPath { get; set; } = "";
    public string Status { get; set; } = "";
}